package inner_class;

public class Parcel7 {
    //匿名内部类

    public Destination getDestination(){
        return new Destination() {
            public int a = 3;

            @Override
            public String readLabel() {
                return "匿名内部类";
            }
        };
    }

    public static void main(String[] args) {
        System.out.println(new Parcel7().getDestination().readLabel());
    }

}
